cd "${mystart}/Simulated data\Calibration/Benchmark Data/"


* Tables 72, 74, 75
qui{
clear
use "Data files/Benchmark.dta"
set more off
keep if age<65

gen DI_value = govt_transfer if H==1
gen DI_indic1=0
replace DI_indic1=1 if TR==1 & H==1 // poor H and getting transfer equivalent to getting DI in data.


label var DI_indic1 "DI"
label define lab_disab 0 "No DI" 1 "DI"
label values DI_indic1  lab_disab

label var TR "Any Gov Trans"
label define lab_tr 0 "No" 1 "Yes"
label values TR  lab_tr

* Table 72 
table  education   (married)   if age>=30 & age<=55  ,  statistic(mean DI_indic1)   nformat(%5.2f)  
collect title "Fraction receiving DI, Model, Ages 30-55"
collect export "${out_tables}/CPS_TR3.tex", tableonly replace

* Table 74
table  education   (married)   if age>=30 & age<=55  ,   statistic(mean TR)  nformat(%5.2f)  
collect title "Fraction receiving Gov Trans, Model, Ages 30-55"
collect export "${out_tables}/CPS_TR4.tex", tableonly replace


* Table 75 - copy paste 
*** table with transfers by H
table  education   (H)   ,   statistic(mean TR)  nformat(%5.2f)  

}



